#!/usr/bin/env python3
# -*- coding:utf-8 -*-
###
# File: def_func.py
# -----
# Description: 定义函数
# -----
# Created  By: Aim 2020-01-29 15:59:14
# Modified By: Aim 2020-01-29 16:24:52
# -----
# HISTORY:
# Date      	By	Comments
# ----------	---	----------------------------------------------------------
###

# def my_abs(x):
#     if x >=0 :
#         return x
#     else:
#         return -x

# print(my_abs(-99))

# def nop():
#     pass


import math

# print(math.sqrt(2))


def quadratic(a, b, c):
    return ((-b + math.sqrt(b*b - 4*a*c))/(2*a), (-b - math.sqrt(b*b - 4*a*c))/(2*a))


print(quadratic(1, 3, -4))
